out of harm's way
In a safe condition or place, as in
We fenced the yard to keep the children out of harm's way
. This idiom was first recorded about 1661.